"use strict";
exports.__esModule = true;
var fs_1 = require("fs");
function findSync(startPath) {
    var result = [];
    function finder(path) {
        var files = fs_1.readdirSync(path);
        files.forEach(function (val, index) {
            var fPath = path + val;
            var stats = fs_1.statSync(fPath);
            if (stats.isFile()) {
                result.push(fPath);
            }
        });
    }
    finder(startPath);
    return result;
}
var fileNames = findSync('./');
console.log(fileNames);
